import torch
import torchvision

load_obj = torch.load('yolo11n.pt')
print(load_obj.keys())
print(load_obj['model'].state_dict())

torchvision.models